import type { App } from 'vue'
import * as Icons from '@ant-design/icons-vue'

/**
 * 全局注册Ant Design图标组件
 * @param app Vue应用实例
 */
export function setupIcons(app: App) {
  // 注册所有图标组件
  Object.keys(Icons).forEach(key => {
    app.component(key, (Icons as any)[key])
  })
} 